package net.jqsoft.demo.entity;



import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import net.jqsoft.common.entity.SuperEntity;


@TableName("employee")
public class Employee extends SuperEntity<Integer>{
	
	private String name;
	private String address;
	private String desc;
	@TableField("dormId")
	private Integer dormId;
	@TableField(exist=false)
	private Dormitory dorm;
	@Version
	private Integer version;
	
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getDesc() {
		return desc;
	}
	
	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public Integer getDormId() {
		return dormId;
	}
	
	public void setDormId(Integer dormId) {
		this.dormId = dormId;
	}
	
	public Dormitory getDorm() {
		return dorm;
	}
	
	public void setDorm(Dormitory dorm) {
		this.dorm = dorm;
	}

	public Integer getVersion() {
		return version;
	}
	

	public void setVersion(Integer version) {
		this.version = version;
	}
	
	
	
	

}
